package com.burstly.lib.component.networkcomponent.burstly.html.rewards;

import android.view.View;
import android.view.ViewGroup;
import com.burstly.lib.component.networkcomponent.burstly.html.CloseableContainer;
import com.burstly.lib.component.networkcomponent.burstly.html.ICloseControl;
import com.burstly.lib.component.networkcomponent.burstly.html.ScriptInterstitialOverlay;
import com.burstly.lib.util.LoggerExt;

public class RewardsFullscreenOverlay extends ScriptInterstitialOverlay<RewardsView>
{
  public RewardsFullscreenOverlay(RewardsView paramRewardsView)
  {
    super(paramRewardsView);
  }

  protected View addChildToLayout(ViewGroup paramViewGroup, RewardsView paramRewardsView)
  {
    View localView = super.addChildToLayout(paramViewGroup, paramRewardsView);
    if ((localView instanceof ICloseControl))
    {
      paramRewardsView.setCloseButtonControl((ICloseControl)localView);
      return localView;
    }
    LOG.logWarning(TAG, "Rewards interstitial view doesn't implement ICloseControl interface, so reward creatives won't be able to hide/show defult close button if any.", new Object[0]);
    return localView;
  }

  protected CloseableContainer<RewardsView> createCloseableContainer()
  {
    RewardsCloseableContainer localRewardsCloseableContainer = new RewardsCloseableContainer(getContext());
    localRewardsCloseableContainer.setBackgroundColor(-16777216);
    return localRewardsCloseableContainer;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.rewards.RewardsFullscreenOverlay
 * JD-Core Version:    0.6.2
 */